package com.talos.ums.controller.admin.role.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 角色表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UmsRoleRespVO {

    @Schema(description = "自增id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2989")
    @ExcelProperty("自增id")
    private Long id;

    @Schema(description = "角色编码")
    @ExcelProperty("角色编码")
    private String roleCode;

    @Schema(description = "角色名", example = "赵六")
    @ExcelProperty("角色名")
    private String roleName;

    @Schema(description = "角色说明", example = "随便")
    @ExcelProperty("角色说明")
    private String remark;

    @Schema(description = "角色类型：0-企业级角色，1-仓库级角色，2-货主角色", example = "2")
    @ExcelProperty("角色类型：0-企业级角色，1-仓库级角色，2-货主角色")
    private Integer roleType;

    @Schema(description = "仓库编码")
    @ExcelProperty("仓库编码")
    private String warehouseCode;

    @Schema(description = "创建人id", example = "25323")
    @ExcelProperty("创建人id")
    private Long creatorId;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人工号")
    @ExcelProperty("创建人工号")
    private String creatorCode;

    @Schema(description = "创建人姓名", example = "赵六")
    @ExcelProperty("创建人姓名")
    private String creatorName;

    @Schema(description = "修改人id", example = "18705")
    @ExcelProperty("修改人id")
    private Long modifierId;

    @Schema(description = "修改时间")
    @ExcelProperty("修改时间")
    private LocalDateTime modifyTime;

    @Schema(description = "修改人工号")
    @ExcelProperty("修改人工号")
    private String modifierCode;

    @Schema(description = "修改人姓名", example = "张三")
    @ExcelProperty("修改人姓名")
    private String modifierName;

    @Schema(description = "状态（0:停用 1:启用）", example = "2")
    @ExcelProperty("状态（0:停用 1:启用）")
    private Integer status;

    @Schema(description = "货主编码")
    @ExcelProperty("货主编码")
    private String companyCode;

    @Schema(description = "租户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14918")
    @ExcelProperty("租户id")
    private Long tenantId;

}
